export const myNew = function (context) {
    if (typeof context !== 'function') {
        throw TypeError('params must be a function!')
    }
    let obj = {}
    obj.__proto__ = fn.prototype
    let res = context.apply(obj, [...arguments].slice(1))
    return typeof res === 'object' ? res : obj
}